import {get} from "../utils/request"

// 上拉加载更多实际上就是分页
export const reqProducts = (params) => get("/api/v1/products", params)

// 获取商品详情
export const reqProductDetail = (id) => get("/api/v1/products/" + id)

// 商品分类
export const reqproductCategories = (params) => get("/api/v1/product_categories", params)

// 商品分类传参
export const productsApi = (params) => get("/api/v1/products?name=" + params) 